#include <iostream>
#include <cstring>

using namespace std;

size_t mystrlen(const char *str)
{
    size_t len = 0;
    char *ptr = (char *)str;
    while(*ptr++ != 0)
    {
        len++;
    }
    return len;
}


int main(void)
{
    char str[31] = "Chicken";
    size_t length = mystrlen(str);
    cout << length << endl;
    return 0;
}
